export function getTime(time) {
  const date = new Date(time).getDate()
  const now = new Date()
  const day = now.getDate()
  if (date === day - 1) {
    return '昨天'
  } else if (date === day - 2) {
    return '前天'
  } else if (date === day) {
    return '今天'
  } else {
    const month = now.getMonth() + 1
    console.log(`${month}月${day}日`)
  }
}
